package com.woniu.p2p.behindService;

import com.github.pagehelper.PageInfo;
import com.woniu.p2p.entity.Invest;
import com.woniu.p2p.entity.InvestAfterloan;
import com.woniu.p2p.vo.InvestAndAfterLoansVo;

import java.util.Date;
import java.util.List;

public interface AfterLoansService {


    //分页查询贷后管理
    PageInfo<InvestAndAfterLoansVo> findAllAfterLoans(Integer start, Integer num, String afterloanstatus, Date predate,Date nextdate,String afterloankeyword);
    //根据项目id查询项目的基本信息
    Invest findAllInvestById(Integer id);
    //根据id删除公司还款信息
    int deleteInvestAfterloans(Integer id);
    //根据id查询贷后管理信息
    List<Invest> findAllInvestByAfterloansId(Integer id);
    //查询所有项目
    List<Invest> findAllInvest();
    //添加贷后信息
    int insertAfterloans(InvestAfterloan investAfterloan);
    //查询最新添加一条数据的id
    int findNewInsertShuJu();
    //根据项目的id修改afterloasn的外键
    int updateInvestAfterloansId(Integer id,Integer afterId);
    //导出所有贷后信息
    List<InvestAndAfterLoansVo> findAllAfterloans(int[] id);

    List<InvestAfterloan> selectAll();
}
